package msgs;
import java.util.*;
/**
 * Used by the clients for setting up chats, and for updating/joinging existing chats
 * Team 9: Andrew Hayworth, Brian Parrella, Ryan Kortmann, Nina Papa
 * @author Andrew Hayworth
 *
 */


public class ChatMsg extends ClientMsg {
	private String msg, title;
	private ArrayList<String> admins, members;
	private boolean closed;
	public ChatMsg(String ip, String name, String pwd, byte[] key, ArrayList<String> admins, ArrayList<String> members, String title, boolean closed) {
		super(ip, name, pwd, key);
		this.admins = new ArrayList<String>();
		this.admins = admins;
		this.msg = "";
		this.title = "";

		this.members = new ArrayList<String>();

		this.members = members;


		this.title = title;
		this.closed = closed;

	}
	public ChatMsg(String ip, String name, String pwd, byte[] key, ArrayList<String> admins, ArrayList<String> members, String msg, String title, boolean closed) {
		super(ip, name, pwd, key);
		this.msg = msg;
		this.title = title;
	}
	
	public ChatMsg(String msg, String title) {
		//super(c, a);
		this.msg = msg;
		this.title = title;
	}
	/**
	 * @return the msg
	 */
	public String getMsg() {
		return msg;
	}
	/**
	 * @param msg the msg to set
	 */
	public void setMsg(String msg) {
		this.msg = msg;
	}
	/**
	 * @return the admins
	 */
	public ArrayList<String> getAdmins() {
		return admins;
	}
	/**
	 * @param admins the admins to set
	 */
	public void setAdmins(ArrayList<String> admins) {
		this.admins = admins;
	}
	/**
	 * @return the members
	 */
	public ArrayList<String> getMembers() {
		return members;
	}
	/**
	 * @param members the members to set
	 */
	public void setMembers(ArrayList<String> members) {
		this.members = members;
	}
	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}
	/**
	 * @param title the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}
	/**
	 * @return the closed
	 */
	public boolean isClosed() {
		return closed;
	}
	/**
	 * @param closed the closed to set
	 */
	public void setClosed(boolean closed) {
		this.closed = closed;
	}
	
}
